package org.jjche.sys.modules.fillrule.api;

import cn.hutool.json.JSONObject;
import org.jjche.common.constant.SysBaseApiConstants;
import org.jjche.sys.modules.user.api.vo.SysUserSimpleVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统编码规则
 * </p>
 *
 * @author miaoyj
 * @since 2024-03-25
 */
@FeignClient(contextId = SysBaseApiConstants.NAME + "-fill-rule-api",
        name = SysBaseApiConstants.NAME,
        path = "/sys/internal/fill_rules/",
        url = SysBaseApiConstants.FEIGN_URL)
public interface SysFillRuleApi {

    /**
     * <p>
     * 生成编码
     * </p>
     *
     * @return /
     */
    @PostMapping("execute")
    String executeRule(@RequestParam String ruleCode, @RequestBody Map<String, Object> formData);
}
